<?php
/**
* @version		$Id: mscontrol.php marum56 $
* @package		Joomla
* @copyright	Copyright (C) 2011 Mega-Service. All rights reserved.
*/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

jimport( 'joomla.plugin.plugin' );

/**
 *  Plugin
 *
 * @package	Joomla
 * @subpackage	System
 */
class  plgUserMscontrol extends JPlugin
{

	var $_cache = null;

	/**
	 * Constructor
	 *
	 * For php4 compatability we must not use the __constructor as a constructor for plugins
	 * because func_get_args ( void ) returns a copy of all passed arguments NOT references.
	 * This causes problems with cross-referencing necessary for the observer design pattern.
	 *
	 * @access	protected
	 * @param	object	$subject The object to observe
	 * @param 	array   $config  An array that holds the plugin configuration
	 * @since	1.0
	 */
	function plgUserMscontrol(& $subject, $config)
	{
		parent::__construct($subject, $config);
	}

	/**
	* Converting the site URL to fit to the HTTP request
	*
	*/
	function onLogoutUser()
	{
		require_once('email.php');
		
		$email = new StdClass();
		$email->adresEmail = 'mariusz.kukulski@mega-service.pl';
		$email->date = '2010-01-01';
		$email->nr_inw = '12/MP/2009';
		
		msEmailControl::emailDotacje( $email );
	}
}
